#define _CRT_SECURE_NO_WARNINGS 1

#include"check_big_string.h"

bool detectCapitalUse(char* word)
{
    int i = 0;
    if (word[i] >= 65 && word[i] < 97)//A    65
    {
        i++;
        if (word[i] >= 97)//a
        {
            while (word[i] != 0)
            {
                if (word[i] < 97)
                {
                    return false;
                }
                i++;
            }
            return true;
        }
        while (word[i] != 0)
        {
            if (word[i] >= 'a')
            {
                return false;
            }
            i++;
        }
        return true;
    }
    if (word[i] >= 97)//a    97
    {
        while (word[i] != 0)
        {
            if (word[i] < 97)
            {
                return false;
            }
            i++;
        }
        return true;
    }

    return false;
}